<?php 

namespace app\common\validate\single;

use think\Validate;

class SysSingleSalaryConfig extends Validate 
{ 
    protected $rule = [
        'uid' => 'require',
        'trial_price' => 'require',
        'price' => 'require',
    ];

    protected $message = [
        'uid.require' => '请输入用户ID',
        'trial_price.require' => '请输入试用底薪(月)',
        'price.require' => '请输入转正底薪(月)',
    ];

    protected $scene = [
        'edit' => ['uid','overtime_price','absence_duty_price','late_price','leave_early_price','full_attendance_price','work_year_price','trial_price','price','admin_name','remark','id'],
        'add' => ['uid','overtime_price','absence_duty_price','late_price','leave_early_price','full_attendance_price','work_year_price','trial_price','price','admin_name','remark'],
    ];

} 
